package indi.zn.commons.serialno;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class SerialNoConfig {
	
	 private String indx;
 	 private String serialNoName;
	 private Long current;
	 private Long begin=0l;
	 private Integer step=1;
	 private Long range=10000l;
	 private boolean cycle;
	 private boolean zeroBlank=true;
     private Integer casheSize=50;
     
 	private boolean gTime=true;
 	private String bcode;
 	private Integer randomBound;
 	
 	private DateFormat dateFormat=null;
     
     
     public SerialNoConfig() {
    	 
     }
     
	public SerialNoConfig(String indx, String serialNoName, Long current, Long begin, Integer step, Long range, boolean cycle,
			boolean zeroBlank, Integer casheSize, boolean gTime, String bcode, Integer randomBound) {
		super();
		this.indx = indx;
		this.serialNoName = serialNoName;
		this.current = current;
		this.begin = begin;
		this.step = step;
		this.range = range;
		this.cycle = cycle;
		this.zeroBlank = zeroBlank;
		this.casheSize = casheSize;
		this.gTime = gTime;
		this.bcode = bcode;
		this.randomBound = randomBound;
		this.dateFormat=new SimpleDateFormat("yyyyMMdd");
	}
	
	public SerialNoConfig(String indx, String serialNoName, Long current, Long begin, Integer step, Long range, boolean cycle,
			boolean zeroBlank, Integer casheSize, boolean gTime, String bcode, Integer randomBound,String dateFormater) {
		super();
		this.indx = indx;
		this.serialNoName = serialNoName;
		this.current = current;
		this.begin = begin;
		this.step = step;
		this.range = range;
		this.cycle = cycle;
		this.zeroBlank = zeroBlank;
		this.casheSize = casheSize;
		this.gTime = gTime;
		this.bcode = bcode;
		this.randomBound = randomBound;
		this.dateFormat=new SimpleDateFormat("dateFormater");
	}


	public String getIndx() {
		return indx;
	}
	public void setIndx(String indx) {
		this.indx = indx;
	}
	public String getSerialNoName() {
		return serialNoName;
	}

	public void setSerialNoName(String serialNoName) {
		this.serialNoName = serialNoName;
	}

	public Long getCurrent() {
		return current;
	}
	public void setCurrent(Long current) {
		this.current = current;
	}
	public Long getBegin() {
		return begin;
	}
	public void setBegin(Long begin) {
		this.begin = begin;
	}
	public Integer getStep() {
		return step;
	}
	public void setStep(Integer step) {
		this.step = step;
	}
	public Long getRange() {
		return range;
	}
	public void setRange(Long range) {
		this.range = range;
	}
	public boolean isCycle() {
		return cycle;
	}
	public void setCycle(boolean cycle) {
		this.cycle = cycle;
	}
	public boolean isZeroBlank() {
		return zeroBlank;
	}
	public void setZeroBlank(boolean zeroBlank) {
		this.zeroBlank = zeroBlank;
	}
	public Integer getCasheSize() {
		return casheSize;
	}
	public void setCasheSize(Integer casheSize) {
		this.casheSize = casheSize;
	}

	public boolean isgTime() {
		return gTime;
	}

	public void setgTime(boolean gTime) {
		this.gTime = gTime;
	}

	public String getBcode() {
		return bcode;
	}

	public void setBcode(String bcode) {
		this.bcode = bcode;
	}

	public Integer getRandomBound() {
		return randomBound;
	}

	public void setRandomBound(Integer randomBound) {
		this.randomBound = randomBound;
	}

	public DateFormat getDateFormat() {
		return dateFormat;
	}

	public void setDateFormat(DateFormat dateFormat) {
		this.dateFormat = dateFormat;
	}
     
	
	
     


}
